package com.DHH.Entity.Base;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 实体类BasePower
 * 数据表base_tb_power
 * 权限表
 * 2017-8-3 12:33:07
 * @author Administrator
 *
 */
@Table(name = "base_tb_power")
public class BasePower  implements Serializable {

	//
	@Id
	@GeneratedValue(generator = "JDBC")
	private Integer id;
	//权限名称
	@NotNull(message = "权限名称不能为空")
	@Length(max = 255, min = 0, message = "权限名称长度为0-255个字符")
	private String powername;
	//权限标示
	@NotNull(message = "权限标示不能为空")
	@Length(max = 255, min = 0, message = "权限标示长度为0-255个字符")
	private String powermark;


	public BasePower(){

	}

	public void setId(Integer id){
		this.id=id;
	}

	public Integer getId(){
		return this.id;
	}
	public void setPowername(String powername){
		this.powername=powername;
	}

	public String getPowername(){
		return this.powername;
	}
	public void setPowermark(String powermark){
		this.powermark=powermark;
	}

	public String getPowermark(){
		return this.powermark;
	}


}
